<template>
  <div class="common-layout">
    <el-container>
      <el-header>
        <Wehead></Wehead>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-col :span="24">
            <h5 class="mb-2">首页</h5>
            <el-menu default-active="2" class="el-menu-vertical-demo" router>
              <el-sub-menu index="1">
                <template #title>
                  <span>页面</span>
                </template>
                <el-menu-item index="/time/index">页面1</el-menu-item>
                <el-menu-item index="/time/open">页面2</el-menu-item>
              </el-sub-menu>
            </el-menu>
          </el-col>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import Wehead from '@/components/wehead.vue';
</script>

<style lang="scss" scoped></style>